package dev.android.yeqh.alarmclock;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class AlarmReceiver extends BroadcastReceiver{

	@Override
	public void onReceive(Context context, Intent intent) {
		long alarmId = intent.getLongExtra("alarmId", -1);
		intent.setClass(context, AlarmingActivity.class);
		intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		intent.putExtra("alarmId", alarmId);
		context.startActivity(intent);
	}
}
